package com.salt.patterns.builder;

/**
 * 阿里云短信发送
 *
 * @author HaiBo Kuang
 * @date 2021/5/16 15:29
 */
public class AliYunMsgSender implements MsgSendService {
    private final MsgConfig msgConfig;

    public AliYunMsgSender(AliYunMsgConfig msgConfig) {
        this.msgConfig = msgConfig;
    }

    @Override
    public void send() {
        String appId = msgConfig.getAppId();
        System.out.print("appId:" + appId);
        System.out.print("发送阿里云短信");
    }
}
